﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//定义一个类，名为PersonClass，有三个成员变量：姓名、电话、地址，
//在主方法中，创建一个PersonClass对象p3，为p3的成员变量赋值。
//再声明一个PersonClass变量p4，把p3赋值给p4，改变p4的姓名，打印p3的内容。
namespace ConsoleApp2
{
    class PersonClass
    {
        private string name;
        private int num;
        private string address;

        public PersonClass(string name, int num, string address)
        {
            this.name = name;
            this.num = num;
            this.address = address;
        }

        public string Name { get => name; set => name = value; }
        public int Num { get => num; set => num = value; }
        public string Address { get => address; set => address = value; }
    }
}
